<?php

namespace App\Api\Controllers;



use App\Api\Dao\SourceContentDao;
use App\Api\Logic\SourceContentLogic;
use Illuminate\Http\Request;

class SourceContentController extends BaseController
{
    /**
     * 获取素材的列表
     * @return \Illuminate\Http\JsonResponse
     */
    public function getSourceList(SourceContentLogic $sourceContentLogic,Request $request,SourceContentDao $sourceContentDao){
        $data = $request->all();
        $sourceContentLogic->getSourceList($data);
        $result =$sourceContentDao->getSourceList($data);
        return $this->success($result);
    }
}
